sudo swapoff -a # turn off swap
sudo rm -i /swapfile # remove old /swapfile
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
sudo chmod 600 /swapfile # set proper file protections
sudo mkswap /swapfile # init /swapfile
sudo swapon /swapfile # turn on swap
free -h # confirm 32G RAM and 4G swap
Add to /etc/sysctl.conf below lines and reboot the system.
"NMI watchdog: BUG: soft lockup - CPU # stuck for #s! [X:3005]" in message log file after a Flame application crash**Causes:
Current time for CPU is greater than Watchdog threshold causing a soft lockup.
Solution:
To resolve this behavior, perform the following steps as root user:
"kernel.watchdog_thresh=30"
Save and Exit.
Reboot machine.